<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>东莞理工学院教学工作量系统</title>
    <link rel="stylesheet" href="/Public/layui/css/layui.css">
    <script src="/Public/js/jquery-1.11.3.js"></script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header" style="height: 75px;">
        <div class="layui-container">
            <div class="layui-row">
                <div class="layui-col-md4 layui-col-md-offset4">
                    <div style="text-align: center;color: #ffffff;line-height: 73px;font-size: 24px;">Workload 用户登录</div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-container" style="padding-top: 5%;">
        <div class="layui-row">
            <div class="layui-col-md6 layui-col-md-offset3" style="border-width: 1px;border-color: #666;">
                <form class="layui-form" style=" padding-top: 10%;padding-bottom: 30px;border-radius: 10px;padding-left: 17%" action="<?php echo U('loginInfo');?>" method="post">
                    <div class="layui-form-item" style="margin-bottom: 20px">
                        <div class="layui-inline">
                            <label class="layui-form-label" style="font-size: 16px;">账&nbsp;&nbsp;&nbsp;&nbsp;号</label>
                            <div class="layui-input-inline">
                                <input type="text" name="teacher_name" lay-verify="required" placeholder="用户登录名" autocomplete="off" class="layui-input" style="border-radius: 10px;">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label" style="font-size: 16px;">密&nbsp;&nbsp;&nbsp;&nbsp;码</label>
                            <div class="layui-input-inline">
                                <input type="password" name="password" lay-verify="required" placeholder="登录密码" autocomplete="off" class="layui-input" style="border-radius: 10px;">
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item" style=" margin-top: 4%;" >
                        <div class="layui-input-block">
                            <button class="layui-btn layui-btn-lg layui-btn-radius layui-btn-normal"style="height: 38px;line-height: 0px;padding: 0 25px;width: 154px;" lay-submit="" lay-filter="demo1">登录</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <div class="layui-footer" style="left: 0;text-align: center; height: 75px;line-height: 82px;font-size: 16px;">
        <!-- 底部固定区域 -->
        © Design by tarkasi 2018
    </div>
</div>
<script src="/Public/layui/layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use('element', function () {
        var element = layui.element;
    });
    layui.use(['form'], function() {
        var form = layui.form;
//        form.on('submit(demo1)', function (data) {
//            layer.alert(JSON.stringify(data.field), {
//                title: '最终的提交信息'
//            })
//            return false;
//        });
    });

    //验证码生成
    var captcha_img = $('#captcha-container').find('img')
    var verifyimg = captcha_img.attr("src");
    captcha_img.attr('title', '点击刷新');
    captcha_img.click(function(){
        if( verifyimg.indexOf('?')>0){
            $(this).attr("src", verifyimg+'&random='+Math.random());
        }else{
            $(this).attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random());
        }
    });
</script>
</body>
</html>